package com.hodgepodge.admin.api;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * title Test
 * projectName colorful-blog
 * desc test
 *
 * @author jiangjian
 * @date 2021/7/15 13:45
 */
@Component
@ConfigurationProperties(prefix = "spring")
@Data
public class Test {

    @Value("username")
    private String username;

}
